/*
 *
 * 名称：四象
 * 功能：易经的四象属性配置
 * 作者：清河张
 * 时间：2025.05.11
 *
 */

#include "xiang4.h"
#include "wuxing.h"


template<> XIANG_T XIANG4::_objs[4]=
{
    {XIANG4::TAIYINN, -2, WUXING_T::SHUI, FANGWEI_T::ZHGBEII,"太阴", "冬", "玄武"},
    {XIANG4::SHHYANG, +1, WUXING_T::MUUU, FANGWEI_T::ZHGDONG,"少阳", "春", "青龙"},
    {XIANG4::TAIYANG, +2, WUXING_T::HUOO, FANGWEI_T::ZHGNANN,"太阳", "夏", "朱雀"},
    {XIANG4::SHAOYIN, -1, WUXING_T::JINN, FANGWEI_T::ZHGXIII,"少阴", "秋", "白虎"},
};

XIANG_T::XIANG_T():
    CT(X4_____, "平和"), _nl(0), _wx5(WUXING_T::TUUU), _fw(FANGWEI_T::FW_____), _jjname("常"), _ssname("勾陈")
{

}

XIANG_T::XIANG_T(int id, int nl, int wx5, int fw, const char* name,
               const char* jj, const char* ss):
    CT(id, name), _nl(nl), _wx5(wx5), _fw(fw), _jjname(jj), _ssname(ss)
{

}

int XIANG_T::nl() const
{
    return _nl;
}

FANGWEI8 XIANG_T::fw() const
{
    return _fw;
}

const char *XIANG_T::jjname() const
{
    return _jjname;
}

const char *XIANG_T::ssname() const
{
    return _ssname;
}

int XIANG_T::wx5() const
{
    return _wx5;
}

